/**
 * 
 */
package cn.rengy.tpa.wxmp.response;

import java.util.List;


import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlCData;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;

import lombok.Getter;
import lombok.Setter;


/**
 * 用于回复的基本消息类型
 */
@JacksonXmlRootElement(localName = "xml")
@JsonInclude(Include.NON_NULL)
@Setter
@Getter
public class WechatResponse {
	
	
	
	@JacksonXmlProperty(localName = "ToUserName")
	private String toUserName;
	
	@JacksonXmlProperty(localName = "FromUserName")
	private String fromUserName;
	
	@JacksonXmlProperty(localName = "CreateTime")
	private String createTime;
	
	@JacksonXmlProperty(localName = "MsgType")
	private String msgType;
	
	@JacksonXmlCData
	@JacksonXmlProperty(localName = "Content")
	private String content;
	
	@JacksonXmlProperty(localName = "ArticleCount")
	private String articleCount;
	
	@JacksonXmlProperty(localName = "image")
	private ImageResponse Image;
	
	@JacksonXmlProperty(localName = "Voice")
	private VoiceResponse voice;
	
	@JacksonXmlProperty(localName = "Video")
	private VideoResponse video;
	
	@JacksonXmlProperty(localName = "Music")
	private MusicResponse music;
	
	@JacksonXmlElementWrapper(localName = "Articles")
	@JacksonXmlProperty(localName = "item")
	private List<ArticleResponse> articles;
	
	@JacksonXmlProperty(localName = "TransInfo")
	private TransInfoResponse TransInfo;
	
	@JsonIgnore
	private boolean noResponse=false;
	
	
	
}
